package edu.dayu.command;

public class DanceCommand implements Command{
    private MiMi miMi;
    private Integer time;

    public DanceCommand(MiMi miMi, Integer time) {
        this.miMi = miMi;
        this.time = time;
    }

    @Override
    public void execute() {
        System.out.println(String.format("开始跳舞表演，时长为：%s", time));
        miMi.hotDance();
    }
}
